package com.gongj.DefaultListableBeanFactory;

import org.springframework.beans.BeansException;
import org.springframework.beans.factory.config.BeanPostProcessor;

public class GongjBeanPostProcessor implements BeanPostProcessor {
	//bean初始化方法调用前被调用
	@Override
	public Object postProcessBeforeInitialization(Object bean, String beanName) throws BeansException {
		System.out.println("bean初始化方法调用前被调用");
		return null;
	}
	//bean初始化方法调用后被调用
	@Override
	public Object postProcessAfterInitialization(Object bean, String beanName) throws BeansException {
		System.out.println("bean初始化方法调用后被调用");
		return null;
	}
}
